//
//  CollectTableViewCell.m
//  Feel_at_home
//
//  Created by dlios on 15/9/30.
//  Copyright © 2015年 Feel_at_home. All rights reserved.
//

#import "CollectTableViewCell.h"

@implementation CollectTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews
{
    self.contentView.backgroundColor = [UIColor colorWithRed:250/255.0 green:245/255.0 blue:232/255.0 alpha:0.5];
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 0, CELLWIDTH - 40, 30)];
    [self.contentView addSubview:self.titleLabel];
    
}

- (void)setCollectionM:(MineModel *)collectionM
{
    self.titleLabel.text = self.collectionM.title;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
